import Vue from 'vue'

import App from '@/App'
import router from '@/router'
//import VueAMap from 'vue-amap';

import {
    Button,
    List,
    Cell,
    CellGroup,
    Row,
    Col,
    Search,
    Icon,
    Tabbar,
    TabbarItem,
    NavBar,
    Toast
} from 'vant';

Vue.use(Button);
Vue.use(List);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Row);
Vue.use(Col);
Vue.use(Search);
Vue.use(Icon);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(NavBar);
Vue.use(Toast);

/*Vue.use(VueAMap)
VueAMap.initAMapApiLoader({
    key: 'f7877c9392141e9b26224edc3999eea2',
    plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Geolocation', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
    v: '1.4.4'
});*/


Vue.config.productionTip = false

new Vue({
    el: '#app',
    router,
    components: {App},
    template: '<App/>'
})
